#include"queue.h"


void Test1()
{
	Q p1;
	QInit(&p1);
	Qpush(&p1, 1);
	Qpush(&p1, 2);
	Qpush(&p1, 3);

	printf("%d\n", QFront(&p1));
	printf("%d\n", QBack(&p1));
	printf("%d\n", QSize(&p1));

	while (p1.tail)
	{
		printf("%d  ", p1.head->val);
		Qpop(&p1);
	}

	QDestory(&p1);


}

int main()
{
	Test1();
	return 0;
}